package org.cbyyx.tc.common;

import org.cbyyx.tc.model.vo.userResponse.UserVO;

public class LoginLocal{

    private static final ThreadLocal<UserVO> threadLocal = new ThreadLocal<>();

    public static UserVO getLoginUser(){
        return threadLocal.get();
    }

    public static void setLoginUser(UserVO user){
        threadLocal.set(user);
    }

    public static void removeLoginUser(){
        threadLocal.remove();
    }
}
